<!DOCTYPE HTML>
<html>

<head>
      <meta charset="utf-8">
      <meta name="viewport" content="maximum-scale=1.0, minimum-scale=1.0, user-scalable=0, initial-scale=1.0, width=device-width" />
      <meta name="format-detection" content="telephone=no, email=no, date=no, address=no">
      <title>Hello APP</title>
      <link rel="stylesheet" type="text/css" href="../css/api.css" />

    <style>
    body{
      padding-top: 1.5rem;
    }
  #header{
    width:100%;
    font-size: 1.1rem;

    background: white;

    margin-top:1rem;
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    border-bottom: 0.02rem solid rgb(242,242,242);


  }
  #header img{
    width:1rem;
    height: 1rem;
    margin-right: 7.5rem;
    margin-left: 0.8rem;


  }
.title{
  width: 50%;
  margin-left: -3.5rem;
  

    text-align: center;

}
ul{
  height: 100%;
  width:100%;
  padding: 0.8rem;
  box-sizing: border-box;

}
ul li{
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
p{
  font-size: 0.8rem;
  color:#666;
  margin-left: 1rem;

}
.p{
  font-size: 0.8rem;
  color:#666;
  position: absolute;
  bottom:0.5rem;
  left:2%;
  right:0;
}
.last{
  position: absolute;
  bottom:8rem;
  left:0.9rem;
  right:0.9rem;
}





    </style>


</head>

<body>


<div id="header">

      <img src="../image/u18.png" onclick="closewin();" class="back">
      <span id="title" class="title"></span>

</div>
<ul class="main" id="content">

</ul>

<p class="p">最终解释权归宝宝早教所有</p>





</body>
  <script type="text/javascript" src="../script/jquery-1.8.3.js"></script>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
<script type="text/javascript">
var id
apiready = function() {
  id = api.pageParam.id
  service()
}

function backclick() {
  api.closeWin({

  });

}


function service() {
api.ajax({
    url: SITE_URL+'setting_api/services/get_list',
    method: 'post',
    data: {
        values: {
            id: id
        }
    }
},function(ret, err){
    if (ret) {
      if(ret.error==200){
        $("#title").html(ret.data.ser_name)
        $("#content").html(ret.data.content)
      }else{
        msgcode('稍后再试')
      }
        //alert( JSON.stringify( ret ) );
    } else {
      msgcode('请检查网络连接')
        //alert( JSON.stringify( err ) );
    }
});


}



</script>

</html>
